package com.byx.chatserver.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;
import org.apache.ibatis.annotations.Arg;
import org.apache.ibatis.annotations.ConstructorArgs;

import java.util.List;

/**
 * Group
 * 群聊
 * @author Superb
 * @date 2021/4/20 17:10
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
@Builder(builderClassName = "Builder",toBuilder = true,setterPrefix = "set")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Group {
    private Long id;
    private String name;
    private String description;
    private Long ownerId;
    private String avatar;
    private String createTime;
    private Integer userCount;

    private List<User> members;
}
